<template>
  <div id="app">
    <el-row :gutter="20">
      <!-- 加上有间隔 -->
      <el-col :span="2">
        <div class="bg-y"></div>
      </el-col>
      <el-col :span="5">
        <div class="bg-r"></div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    // HelloWorld
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  height: 100px;
}
.el-row{
  height: 100%;
}
.bg-y{
  background-color: yellow;
  height: 100%;
}
.el-col{
  height: 100%;
  float: left;
  width: 100px;
}
.bg-r{
  background-color: red;
  height: 100%;
}
</style>
